package dt.inlee.domain;

import java.io.Serializable;
import java.sql.Blob;
import java.sql.Clob;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * The persistent class for the NEWSARTICLE database table.
 * 
 */
@Entity
@Table(name = "KQ_NEWSARTICLE")
public class Newsarticle implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	private String id;

	private Blob attachcontext;

	@Column(length = 255)
	private String attachname1;

	private Clob context;

	private Date publishtime;

	@Column(name = "SYS_USER_ID", length = 32)
	private String sysUserId;

	@Column(length = 255)
	private String title;
	//未发布0，已发布1
	private String status = "0";

	public Newsarticle() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Blob getAttachcontext() {
		return attachcontext;
	}

	public void setAttachcontext(Blob attachcontext) {
		this.attachcontext = attachcontext;
	}

	public String getAttachname1() {
		return attachname1;
	}

	public void setAttachname1(String attachname1) {
		this.attachname1 = attachname1;
	}

	public Clob getContext() {
		return context;
	}

	public void setContext(Clob context) {
		this.context = context;
	}

	public Date getPublishtime() {
		return publishtime;
	}

	public void setPublishtime(Date publishtime) {
		this.publishtime = publishtime;
	}

	public String getSysUserId() {
		return sysUserId;
	}

	public void setSysUserId(String sysUserId) {
		this.sysUserId = sysUserId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}